/*
    Bandleader
    Copyright (c) 2006 by Grant Yoshida

    Licensed under the GPL version 2 or later,
    please see COPYING for details.
*/

#ifndef DeleteRow_h
#define DeleteRow_h

#include "PtrFwd.h"
#include <QtGui/QUndoCommand>

//
//! Inserts a row after the current one.
//
class DeleteRow : public QUndoCommand
{
public:
    DeleteRow(ChordView *view, int index, QUndoCommand *parent = 0);

    void undo();
    void redo();

private:
    ChordView *m_view;
    DocumentPtr m_document;
    int m_index;
};

#endif
